package com.xjtu.chapter04.ex4_5;

/**
 * @author yjq
 * @version 1.0
 * @date 2021/8/14 22:24
 */
public class Line {
    Point p1, p2;

    Line(Point a, Point b) {
        p1 = new Point(a.x, a.y);
        p2 = new Point(b.x, b.y);
    }

//    Line(int x1, int y1, int x2, int y2) {
//        p1 = new Point(x1, y1);
//        p2 = new Point(x2, y2);
//    }//另一种构造方法
}
